package net.sky.oa.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 *维修申请表
 *FloMendapply. @author hond
 */
@Entity
@Table(name = "FLO_MENDAPPLY")//维修申请表
public class FloMendapply implements Serializable {

	private static final long serialVersionUID = 5673991033245515351L;
	
	// Fields

	private Long id;
	private String title;   //申请标题
	private Date applytime; //申请时间
	private Date expecttime;//到位时间
	private Integer rank;   //紧要程度
	private String reason;  //申请理由
	private String desn;    //描述

	// Constructors

	/** default constructor */
	public FloMendapply() {
	}

	/** minimal constructor */
	public FloMendapply(Long id) {
		this.id = id;
	}
	
	@Id
	@SequenceGenerator(name="SQ_FLOMENDAPPLY_ID",sequenceName="SQ_FLOMENDAPPLY_ID",allocationSize=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE,generator="SQ_FLOMENDAPPLY_ID")
	@Column(name = "ID", unique = true, nullable = false)
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
		
	@Column(name = "TITLE", length = 60)
	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "APPLYTIME", length = 7)
	public Date getApplytime() {
		return this.applytime;
	}

	public void setApplytime(Date applytime) {
		this.applytime = applytime;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "EXPECTTIME", length = 7)
	public Date getExpecttime() {
		return this.expecttime;
	}

	public void setExpecttime(Date expecttime) {
		this.expecttime = expecttime;
	}

	@Column(name = "RANK", precision = 1, scale = 0)
	public Integer getRank() {
		return this.rank;
	}

	public void setRank(Integer rank) {
		this.rank = rank;
	}

	@Column(name = "REASON", length = 100)
	public String getReason() {
		return this.reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}

	@Column(name = "DESN", length = 100)
	public String getDesn() {
		return this.desn;
	}

	public void setDesn(String desn) {
		this.desn = desn;
	}

}